#{extends 'common/frontMain.html' /}
%{
	business.BackstageSet  currBackstageSet = business.BackstageSet.getCurrentBackstageSet();
}%
#{set title:currBackstageSet.seoTitle+'|登录' /}
<head>
    <link rel="stylesheet" type="text/css" href="@{'/public/stylesheets/new_css/login.css'}">
</head>
<div id="main">
    <hr class="top-cutting-line" size="3">
    <div class="register-container">
        <div class="header">
            <span class="company-name">注册金豆荚理财</span>
            <span class="note">如果您已拥有金豆荚理财账号，可点击此</span>
            <a>登录</a>
        </div>
        <div class="body clearfix">
            <div class="advertisement">
            </div>
            <div class="form">
                <ul class="tab clearfix">
                    <li>
                        <button class="selected-tab" style="">
                            账户登录
                        </button>
                    </li>
                    <li class="cutline">
                        <button>
                            快速登录
                        </button>
                    </li>
                </ul>
                #{form @front.account.loginAndRegisterAction.logining(), id:'submit'}

                    <div>
                        <label for="name">手机号</label>
                        <input type="text" id="name" name="name" value="${flash?.name}" placeholder="请输入手机号码"/>
                    </div>

                    <div>
                        <label for="password">密&nbsp; &nbsp;码</label>
                        <input type="password" name="password" id="password" value="${flash?.password}" placeholder="请输入登录密码"/>
                    </div>

                    <div class="save-user-name clearfix">
                        <input class="check-box" type="checkbox" checked="true" />
                        <span>记住用户名</span>
                        <p><a href="@{front.account.loginAndRegisterAction.resetPasswordByEmail()}">忘记密码</a></p>
                    </div>
                    <div class="submit-btn-container">
                        <button class="submit-btn" onclick="login()">
                            登&nbsp;&nbsp;录
                        </button>
                    </div>
                    <div class="free-register clearfix">
                        <a href="@{front.account.LoginAndRegisterAction.register()}">10秒免费注册</a>
                    </div>
                #{/form}
                <div class="partner">
                    <p>
                        使用合作账户登录：
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function login(){
    	var name = $("#name").val();
        
        if($("#name").val() == ''){
        	alert("请输入手机号");
        	return;
         } 

        if($("#password").val() == ''){
        	alert("请输入密码");
        	return;
        } 

        $("#submit").submit();
      }

</script>